<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>关于软件</title>
		<!-- css代码 start -->
		<link href="../../css/mui.min.css" rel="stylesheet" />
		<link href="../../css/icons-extra.css" rel="stylesheet" />
		<link href="../../css/global.css" rel="stylesheet" />
		<style>
			.termsOfService{
				padding: 15px;
			}
		</style>
		<!-- css代码 end -->
	</head>
	<body>

		<!-- html代码 start -->
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 id="title" class="mui-title">关于软件</h1>
		</header>
		<div class="mui-content">
			<div style="width: 100%;height: 190px;text-align: center;">
				<img src="../../images/rjsm.png" width="150px" height="150px" style="margin: 0 auto;"/>
				<span style="text-align:center;font-size: 16px;">版本号：<span id="versionName"></span></span>
			</div>
			<div id="termsOfService" class="termsOfService">
				
			</div>
		</div>
		<!-- html代码 end -->

		<!-- js代码 start -->

		<!-- 基础js start -->
		<script src="../../js/mui.min.js"></script>
		<script src="../../js/utils/h.js"></script>
		<script src="../../js/constant.js"></script>
		<script src="../../js/common.js"></script>
		<script src="../../js/utils/base64.js"></script>
		<script src="../../js/utils/md5.js"></script>
		<script src="../../js/utils/sortMap.js"></script>
		<script src="../../js/utils/http.js"></script>
		<script src="../../js/app.js"></script>
		<!-- 基础js end -->

		<script type="text/javascript" charset="utf-8">
			(function($, doc) {
				$.init();

				$.plusReady(function() {
					var getTermsOfService = function() {
						var currentType = plus.networkinfo.getCurrentType()
						if (currentType === plus.networkinfo.CONNECTION_NONE || currentType === plus.networkinfo.CONNECTION_UNKNOW) {
							plus.nativeUI.closeWaiting()
							plus.nativeUI.closeToast()
							plus.nativeUI.toast("当前无网络")
							return;
						}
						app.showWaiting()
						ajaxGetNoneToken(BASE_URL + 'cc/app/termsOfService', {
							versionCode: plus.runtime.versionCode
						}, function(data) {
							// console.log(JSON.stringify(data))
							app.closeWaiting()
							if (data.code === 200) {
								h("#versionName").html(data.data.versionName);
								h('#termsOfService').html(data.data.termsOfService || '')
							}
						}, function(errorMsg){
							app.closeWaiting()
						});
					};
					
					getTermsOfService();
				});
			}(mui, document));
		</script>
		<!-- js代码 end -->
	</body>
</html>
